Fix for ptrace check under FreeBSD