fix return type of print() & write() to match Arduino's Print.h