Add fallback is_hidden check for windows if win32 libs are not available.
Use st_flags on OSX instead of Foundation libs.