add "-mt" for library names
change two "operator<<" operators of map and pairs to avoid a problem with LLVM on MacOS as described at http://clang.llvm.org/compatibility.html#dep_lookup