This is to cherry-pick the following commit from the Tarantool LuaJIT branch: commit 0615898d294847677ce8c652f3a67956a48e0ee1 Author: Nick Zavaritsky <mejedi@gmail.com> Date: Thu Jul 28 14:24:58 2016 +0300 Automatically try *.so if *.dylib is missing (osx).