Allow building static and/or shared libraries