Update libffi to 3.1, sqlite3 to 3.8.4.3
gcc-4.9.0: Add new patches.
Merge pull request #357 from Alexpux/develop

Add patches for GCC. Some updates.