COMP: Fix build errors about missing MAXIMUM_NUMBER_OF_PIECES.

See https://www.marshut.net/ixwruq/missing-maximum-number-of-pieces.html

WHOLE_BOUNDING_BOX seems to have vanished.