Graeme Tinsdale Pull Request

Hi,

I've solved the 3 problems, they have all be tested and work on MacOS 10.8.3 when compiled using i686-apple-darwin11-llvm-g++-4.2.

I'll E-Mail a zip file containing the files as well.

Regards,

Graeme Tinsdale