Fixed AC_TRY_COMPILE tests on CentOS