Remove g_NaN global variable and its constructor.