Fix missing includes in java serial tool.
Ignore generated files related to JNI.
Update generated Makefiles.in.