[cmake,autotools,release] Complete the last 2 patches concerning macro installation path.

Somehow I missed some files when committing. this patch fixes this.
[cmake,release] Makes macro installation path adjustable.