Add preBuild hook for addons

preBuild hook for add-ons has been implemented in master as of #2411