Fix for issue #1252

No sure if this needs work for anything other than FreeBSD, but this fixes the compile issue I was seeing on FreeBSD i386.