fixes export problems with template specification

windows stuff again ...