Some utilities to detect NIO2 support