use libffi and enable multithreading

libffi is more common than libffcall and has a more suitable license. Multithreading support is needed to use pycrosswalk inside xwalk-launcher on Tizen.