corrected osx header include
must link with librt on linux,but apple does not provide a librt