Fix compilation errors after moving to Akka 2.1