Minor fixes to create dpi dll