Updated MYErrorUtils to stop using a deprecated function

This was causing deprecation warnings/errors when building for OS X 10.8+.