modified for running it from mac os x snow leopard, using android
developer tools Build: v22.2.1-833290
added changes to run on mac os x