Return JavaScript null on bad get.
Add basic FreeBSD support.