Also support default_library='both' to make library() build both shared and static libraries. Closes #484