fix a bunch of javac warnings