fix Mesa build for OSX Mavericks