Rename C++ part to PixelDensity and name functions and namespace to match. Remove Init/Terminate that were doing nothing. Get extension and example building and tested on Xcode (extension not available on mac yet). Add some reasonable fallback guesses for desktop screens