Windows build: Inline functions clean up, regex implementation separation origin