Use checkstyle for java syntax check

NOTE: javac was unbearably slow