use USER_CFLAGS _not_ CFLAGS directly. also set the correct flags for arm/x86_64...