fix compiling for BMS_TOOLS = 0

Status Job ID Name Coverage
  External
passed jenkins