Added BUILD_JAVA_LIBRARY macro

This builds core.jar pretty well. Need to finish implementing the resource dirs. Added a comment on how it's done in android with a find command.