Revert "Add-on init: Removed "private" argument"

This reverts commit dff8b1b13d258404e7934c96133a0ed4ad2e91a8.
Add-on init: Refactor after review by @indutny

* do not attempt to inline registerAddon
* removed C++11 variant
* diff hygiene: respect line ownership in macros
* cosmetics