Make HPX build on OS X + Clang + libc++

This patch fixes most of the warnings and errors I could find, and many of the examples run nicely on my MacBook Air, Mac OS X 10.7 Lion.

Here are my full instructions to repeat the process: https://gist.github.com/4455735. Feel free to include them in your documentation however you like to.