fix build
fix automatic reference to the last define for libraries