fixes for mac os x

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