Made fixes according to new Netty 4.0.0Beta2.