Changes necessary to re-enable building on Mac OS X 10.6

See this [discussion](https://github.com/hgomez/obuildfactory/issues/3).