Add -lgfortran flag to gcc call in a makefile

Adding $(EXTRALIB) adds this flag when things are built with
msys2 on windows. Without this the build fails.