patch to build on x86_64