Updates for NIO 1.2

Signed-off-by: Oren Leiman <oleiman@neutral.io>