fix tempBuffer C++0x type issue