libshared: fix x86_64 build