Fix checking BUILD_ARCHITECTURE.