modify configure test, as 'override' keyword is not supported in gcc 4.6