fix test for whether input types support selection
remove dead code
support for building standalone