fixes for mac os x

should fie the rdynamic option added to compiles in mac os x and unneccisary addition of -pthread fixing #464