Fix build failure under FreeBSD 9.3
Merge pull request #1621 from rubenk/fix-build-failure-under-freebsd

Fix build failure under FreeBSD 9.3