Finally solved the .a/.so problem