Replaced the template code with a NS_DEF_FACTORY. This is temporary. As soon as I can verify this works on windows and mac, ill remove the old code. git-svn-id: svn://10.0.0.236/trunk@23165 18797224-902f-48f8-a5cc-f745e15eee43