libwinpr-path: extend custom portability functions