Added headers and functs for Windows.