If I understand you correctly the 1.9.10 works because it generates the .so file but 1.10.4 is not? Or is it now working with all versions after your fix?
The 1.10.4 generates the file too. But for some reason, the game doesn't run and shows that error. It worked when I took the file from the 1.9.10 and put on 1.10.4 folder. When I built the .so file from source also worked.