omcache: Make compilation work on OSX

OS X lacks some Linux specific functionality. Define required OSX
equivalents and add an OSX Makefile build target.

In the Python CFFI wrapper, if unable to load the .so file try to
load the .dylib instead.