Mod rpaf support (with FreeBSD support)

This is #460 plus FreeBSD (expoerimental). Not tested on FreeBSD.