Patch by Kolja Brix <brix@igpm.rwth-aachen.de> that fixes Bug 565 and adds a testcase to verify that.
Forward compiler flags to Fortran workaround