[#2419] Mark sun.nio.ch as optional

Mark the package "sun.nio.ch" as optional