remove unneeded build flags