Fix flags for compiling on linux