Try first to load the 64bit version of libffi under Solaris.