Link a new fortran template to existing c++ one

As per #1140