build fix for mac: Don't use librt on mac.
python bindings: Specify restype for functions that return pointers.
(Otherwise a 64-bit pointer may be truncated if Python int is only 32-bit.)
Merge remote-tracking branch 'stuart/mac-fixes'

Conflicts:
	CMakeLists.txt