Fixed non-debug compilation on windows