Almost compatible with gcc 4.4.
(except the linking error with test_nbt.cpp)