fix compile on Freebsd 10 http://forums.harpywar.com/viewtopic.php?id=1235