Fix build under llvm

llvm needs explicit linkage to libstdc++ (or -stdlib, but that introduces
compatibility issues with gcc) as well as libm.
Merge pull request #107 from Lagg/llvm-fix

Fix for compiling with LLVM on Linux.