Move Smack functions to separate source file/header

It makes more sense for the Smack functions and other macros to be separate,
moved out of util.h.