Fix issue with x64 vs x86 libraries