Hacks to compile and run on modern systems