added -Wall to compile options