Added GCC 4 support