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.