Doesn't compile on windows :-( otherwise.