Use meson for portable builds
As discussed previously, we plan to move apk3 to using the Meson build system only.
Accordingly, we introduce a portability layer, that is only built when Meson is used. The legacy build system will assume that the build is running on an Alpine system, until we eventually drop it.
Right now the only blocker on dropping the legacy build system is fixing the testsuite.