Hacked to compile on ubuntu trusty 64 bit