added -Wall -Werror to build flags