fix for issue #42

fix build error with automake 1.11 and should work with automake 1.12 

successful tested with automake 1.11

please test with automake 1.12 or higher