add macro for not mscver 1800
compilation error fixes