With the new LLVM5.1 on Mac OSX some packages have compile errors. This errors are fixed with this commit.
Fix issue #7,#8,#9
Go back to boost 1.54 since the boost thread doesn't compile with LLVM5.1. Explicitely define compile and link flags for c++11 and libc++ when using clang.