cleanup clib code
remove unused target SNAP and appropriate macros