Different LDFLAGS for Fortran due to problems with newer gfortran versions which don't tolerate the parameter -std=c++11.
Set LDFLAGS correctly. Remove dubug output.