Forcibly disable the '--as-needed' linker option.

With ld on Ubuntu 14.04 and GCC 4.9, when using C++'s std::thread provided by libstdc++, the linking against pthreads gets dropped by it.