plugin/memory: add support for osx/bsd

Closes: https://github.com/pommi/CGP/issues/67