Now compiles also with Visual Studio 2008 under Windows (still buggy!)