Now, entites get Engine reference in constructor, so they can use it to define initial state.
Created cmake based build system.
Fixed an uninitialized variable and a few warnings.
Fixed a few uninitialized constant warnings to be on the safe side, even though they are not actually a bug.