Changes to support OpenBSD.

Change below adds support for OpenBSD, tested on amd64 and i386 OpenBSD 5.6, but with 5.5 should work too.
`undef` should not be quoted. That would be the string `"undef"`