Made some fixes to make this work in Eclipse on Windows.