compilation clean-up for c++11, remove Serial.h dependency