fixed warnings building with -Wall and -Werror
Merge pull request #10 from andrew-aladev/master

fixed warnings building with -Wall and -Werror