(MODULES-1247) FFI module - allow to work on x86 / x64

Should be ready for review / merge / release