Got it to compile

Holy shit it actually compiles again! However there are still LOTS of
errors in the Views so it won't actually work, yet.
..