Import required functionality from ppport for <5.14
Fix C89 issue
v0.009

          Import required functionality from ppport for <5.14