Changed counter from size_t to int to avoid warning.
Added changes so far for 0.9.5.
Add travis config for running on mac