Remove unneeded read from SPTW.
Add more CXXFLAGS to enable standard warnings.