Getting the code to build on most ubuntu versions.
Compiles on 14.04