Thanks Michael Jerris, that worked: "there is a file call modules.conf in the root of the freeswitch source dir. Open that file and uncomment mod_spidermonkey_odbc then again run make and make install".