Rudimentary FreeBSD compilation fix

This fixes bug #192.