Makefile: build static library
Fix: types