kazmath updates for templates
Adds CC_DLL to kazmath for windows compatibility