changed macros to compile in windows environments with mingw