Fix gcc-4.5 and gcc-4.6 compatibility.
Minimum required compiler is now gcc-4.5.