fixed tests (at least under Windows) and unified formating
exclude nio subproject when using java 5 or 6