appOSX added, setconsts method of gfx class deleted