fix pcre bug on windows