Don't assume that the compiler is gcc.

More testing is in order, but mongrel2 appears to be successfully building on FreeBSD 10.0.