Update from https://github.com/septag/dmon, commit: 48234fc2 to include a fix for linux.
Just integrating the file, adding initialization and some stub code.