Did libtool magic for Android

This includes some libtool magic to help Android builds