Fix compilation on FreeBSD

The trick to detect if the VM is compiled on GNU libc only works on GNU libc and the context is named differently on FreeBSD.