Fix bugs
Add build.sh to create an universal static library