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

Fix olist crasher.
Fix most compiler warnings and fix for OSX.
Merge pull request #13 from zlangley/warnings

Fix most compiler warnings and fix for OSX.