[fix][build] added same flags as lib has