x64-upstream: Fix several build issues in net, base, content and ndk