cmake: add mac target properties
periodic msg: fix include guard