Added Windows support for file creation.