OSX: fix DPI detection