Prepare for CMAKE support. @VAR becomes @VAR@
Initial CMAKE support