winsys/hgl: Build fixes