Debug build flags
Fix OBIWAN error in malloc
Move function invocatation where it belongs, clean up example