fixed build on OSX10.10