fix qrcode on OS X 10.7