added include for stdio and fixed makefile for example