Fix compiler on windows and linux