fix warnings + add examples rule in makefile