Fixed makefiles to work on my system. Also resolved cross-platform
issues with Linux. Tested on Ubuntu machine and cache builds. Java
seemed to have some dependency issues that I could not immediately fix.