Fixed stupid issue with not linking threading library properly