Fix problems with new compiler attribute checking in configure script.