Fix two bugs caused strict warnings
Merge pull request #19 from tivnet/master

Fixed two bugs causing strict warnings; Thanks a lot for the request.