add support for postinstallcmds, deprecate makeopts/premakeopts in favor of buildopts/prebuildopts