Fix compilation with GCC 4.2.1 on FreeBSD 9

Thanks to Domagoj Stolfa <shrinkd@gmail.com> for his aid in debugging this.