gcc-4.6+ support added