added osx if statement to compile.sh
only linking the rt library on linux
Merge pull request #3 from alphashack/feature-osx-support

Feature osx support