Enable compilation on Windows CE

Add a few ifdefs to support this additional platform.