Make project build on linux

The same file will build properly on darwin and linux. It only needs
special casing for Windows.