Fixed #521 -- work on systems with no ec header at all