Pim now compiles on OSX. Does not work yet.