finally fixed the build script
restructured the project to work with gradle and actually fixed the build script