A small change in CMakeLists.txt is needed to make alarm-handler compile on macOS.
CMakeLists.txt
alarm-handler