COMP: Fixing instantiation of templated functions.

To address compilation errors from MacOSX-gcc4.2-Release-IOSTL.