Fixed javac build errors.