Installer work, change to plain C, work for OSX installation.
Mac launchd item and launcher script, uninstaller work.