Support ocaml 4.01.0

Close issue #9 

- [x] compiles with 4.01 and test pass locally
- [x] make it pass on travis.