This is a nonsolution. Newer versions of the Core include bug fixes and use better compilers. You'll have to update eventually, so you might as well fix your code now.
Multiple solutions have been given: use uint8_t instead of byte and avoid using namespace std.