OS X Mavericks fix (samer as mg_idl_export.h in mglib).