build: introduce PKG_BUILD_FLAGS and move PKG_IREMAP to it