MAINT: make NPY_CPU_HAVE_UNALIGNED_ACCESS a numeric macro

allows using it in if statements like for count_nonzero
also fix a compiler warning by casting