Compatibility changes

These are changes I had to make on my system so that Hydra could build properly, and so that the Hydra-engine application could run.