fix compiler error with MockBuildSettings

This reverts commit 580f843e08b06b4853ad881011b8a2c46dbfcb0a.