This is particularly important if you want to get the number of bytes of a
resource loaded by the class loader:
getClass().getResource("myFile").openConnection().getContentLength()
and server socket channels are implemented. This version works but only when
libnative is linked with g++ (because of C++ object creation code that fails
without this linking)