Compilation errors fixed

Hi

I would like to use your code. I was trying to compile it on Ubuntu and there were few easy compilation errors. I fixed them, so now it is compiling with no errors and tests also passing.

Best regards,
Aliaksei