minor cleanups and fixes

minor code cleanups and also if "--use-dvm %android_path%" is used add "%android_path%/system/lib/" to the paths where libraries are searched