Added PDF417 patch by Hartmut Neubauer with a bunch of compilation fixes
More compilation fixes