Fixed build on Windows. Provides a temp fix for #7.

Added template params to the Windows versions of functions that were modified in #6.