-reorder functions: move minstalldir(), minstallfile, minstallexec() and minstalllib() to the top so we can use them savly in other functions and to better keep track of all of them