Minor makefile fix, plus added a test to ensure C and Java version consistency