Fixed build settings for library