Fix flags that broke the build