Make tests and Python bindings actually build with new API