Make sure that filtering happens correctly in cppwrap build