refactored macros as library, incl. version suffix on dev