OSX: Fixed compile fail due to OSX have no librt
Fixed indent
Merge pull request #111 from bixuehujin/osx-fix

Fixed compile fail in OSX