added -pthread by default for GCC