support android build

Fixed as Mozilla's comment.