libfreerdp-core: fix build warnings and windows broken build