Attempt to fix compilation on freeBSD