cmake: fix linking issue on osx
scide: detect CmdPeriod from native NSEvent