Fixing curaengine so it can compile the latest git head

This patch fixes cura engine compilation for the latest git version of cura engine (older versions should also still work).