fix compilation error with vc++ and gcc 3.4