Fixed deprecated OS X function call
Fixed warning in JPEG checker