Fix mac compilation by removing librt  Issue #325
Fixed duplicated symbol error due to definition in .h file, issue #325.