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.

This results in a runtime error of: exception(std::system_error): Enable multithreading to use std::thread: Operation not permitted