Enable scheme generation, avoid a crash, fix the build (tests are next)