Makefile/GCC: link libstdc++ statically
Prefer std::numeric_limits::max() rather than unsigned int overflow