add compile hint for OSX, fixed linux compile options