protect macosx against the HiDPI hacks

Change-Id: Ie79abaffef72cbdf3006314c56590ca1e10cf949