Should compile on linux now. Thanks to crumblingstatue for patch!