* Creates a new NIF file of the given file name by crawling through the data tree starting with the root objects given, and keeps track of links that cannot been written.
* \param[in] in The output stream to write the NIF data to.
* \param[in] roots The root objects to start from when writing out the NIF file. All decedents of these blocks will be written to the file in tree-descending order.
* \param[in] missing_link_stack stack of links which are referred to but which are not inside the tree rooted by roots.
* \param[in] info A NifInfo structure that contains information such as the version of the NIF file to create.