Fix up flags for compilation on linux