Initial commit
Merge https://github.com/mhtong/fixlib

Adding in previous code.