work on cross-platform build (drawbox implementation)