Windows + Shadow build compilation fixes