Fixed to compile using GCC 4.6.3 on Ubuntu 12.04.