prepare to sync with upstream libPUGL
part two of pugl update
unify with robtk pugl