Added -Werror option to g++ compiler to catch all errors