Move declaration of global map before ifdef.