support dylib and so generating
Merge pull request #1 from take-cheeze/dylib_so

Support dylib and shared object generating.