Fix compilation options for the library