enable AM_SILENT_RULES
add -W -Wall and std=gnu99 to CFLAGS / std=c++11 to CXXFLAGS
fix all warnings