compilation fixes for 0.6

still includes a bunch of deprecated things, but compilation is a first step