decoupling swell-gdi for lib safe build