#340 add missing include guards to cmake files defining functions and macros only