it doesnt break the mac. I verified that it works on unix and windows.
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.