make pattern matching compile on 2.10; tests still fail though