Fix compiler warnings

This 2 commits fix #41 and #42