Fixed building on MacOS 10.7.