flexspec: update buildsystem for target changes

Closes #15717