Support dylib and shared object generating.