Fix generated OpenSSLEngine class to handle direct byte buffers

Netty 4 makes use of direct byte buffers. In particular, the constant empty buffer is hard-coded to be a direct buffer. Since the .array() method is unsupported on direct buffers, other parts of the ByteBuffer api are needed when manipulating the buffers.