Fix compile flags for remote compiling