WIP: rewrite 64-bit redirector/wrapper (untested)

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
fix for local builds

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>