[DF-860] Compiled introspection on Mac OS X
[DF-185] Fix compilation errors