Fix compilation problems on JDK 7

This has to change references to some internal Sun classes that will likely mean this build may have different behaviour with earlier JREs on Jaguar, Panther and Tiger. All of those are old so I haven't lost too much sleep.
Recompile for Mavericks fixes
Ignore dastardly .DS_Store files