Merge pull request #2 from hieuhoang/master

Misc compile stuff
Make O3 compilation by default
document compiling library