Windows intrinsic function replacements