Add -pthread to compiler