Add a macro for creating format libraries