Fixing compilation issues with OptiML