updated exports of templated classes to fix visualc++ problems