Apply the fix in #41 at the m4 level
Merge pull request #42 from gahr/fix-ld-flag-2

Apply the fix in #41 at the m4 level