Fixed android compilation errors.