Compatibility changes

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