libstruct: test source and CMakeLists are optional