fix parsing of dynamic ELFs w/out section headers

finally got around to refreshing this patch & adding a test case as originally requested

this should fix issue 3 and issue 29