Fix bug when CXX_FLAGS contains an option with length less than 2 (ie -g).