sign-compare warnings fixes

The (hopefully) final fix for the issue #76 . At least now the project can be compiled w/ gcc-4.9.0 and `-Wall -Werror` (yes, I know that `-Wall` is actually  not all possible warnings but only "important" ones so future compiler versions still can blame).