Support different NMS block classes depending on version.