Add platform support for MidnightBSD.

Tested with 0.5-RELEASE