add defines in warlib
[ISSUE #8]Put inits in static functions in class WarlibInit