Compile problems on windows and linux