Fixed compilation for VS2010/non-C++11 threading code (nullptr is not suited for those arguments are they are integral types, NOT pointers).