Merge pull request #2751 from wenningerk/fix_bsd_build
Fix: make void prototypes consistent to fix freebsd