Yes, the code you are using was written for IDEs prior to 1.0. The error should tell you to replace Serial.print(val, BYTE) with Serial.write(val). So replace
Serial.print(byteGPS, BYTE);
with
Serial.write(byteGPS);
This question is asked and answered frequently, and is also explained in the IDE release notes.