add missing const qualifiers to MemoryDataLayer ExactNum* functions
upgrade warnings to -Wall -Werror -Wno-sign-compare
add WARNINGS to CXXFLAGS