rt: add #define's to reduce unnecessary includes from windows.h
std: fix path_is_dir and path_exists on Windows.
std: fix getcwd on Windows. (#9618)