add "macros" option to install global macros in compile API