Text compile errors after removing some unneeded java code
Updated build for cross building