build flags fix