Fixed default ref counter values for non-C++11 code.