Let TinyXML2 handle fopen/fclose. Added testlibrary.cpp to VS10 solution