Add rudimentary support for Android and B2G