Fixed compatibility with gcc 4.6.3 on Ubuntu5