add patches to help building under OS X 10.6