ensure build flags are set and thus include paths are correct