Build: Fixing template class compilation