build: switch to Cmake

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
fix build warnings

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>
build: add .gitignore

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>