Fixing the build on Mac OS 10.7 with JDK7 (fixes some NIO2 stuff as well)