[PATCH] allow flatmem to be disabled when only sparsemem is implemented