replcae bcmp with memcmp for building on android