Add macros to build and install