linker lpthread flag added