Fixes moai not supporting sockets, sqlite3 and others on Linux

Added necessary changes to get luaext working under Linux in order to support RapaNui.

Includes a FindSQLite3 module from the 'net that's licensed under BSD.