Made the project build on OSX (but it may now not build on other
platforms). Some ifdeffing in the header files might be
required. Or futzing with the header structure.
added if defs for Apple computers