Fix unresolved function call on JVM < 1.7

This is a fix for using Mockwebserver on Android.

I think the project is supposed to support Java 1.5 and 1.6 and that this is the proper way to fix it (looking at the other closeQuietly(Socket) method) hence the pull request,
otherwise just let me know.

See commit message for details.