Working compile on linux