Fix olist crasher.
Merge pull request #12 from zlangley/olist

Fix olist crasher.
Merge pull request #13 from zlangley/warnings

Fix most compiler warnings and fix for OSX.
Fix more warnings and some style.