Correct type cast
Improved makefile for lzOG