Added -Wall and -Werror flags when building on mac (is in fact dependent on the compiler that is used; currently don't know how to check that)