Fix binary build options for libraries