Building the package with bmake succeeded 10 times in a row. Without the SUBST block, each build failed about 50% of the time.