Linux also needs -pthread for using multithreading.