omcache: Port omcache to compile and work on OS X/LLVM 5.0

There's now a separate makefile target "osx" for OS X. Also made
omcache.py load the correct lib on darwin.