fix build: one flag at a time