Fix windows warnings level 4

Fix Visual Studio W3 & W4 warnings

To check:
PDA.cpp line 90 -> should the comparison be with word?
BGEO.cpp line 313 -> 0xFF is truncated as it is casts to char, should the cast be to an unsigned char?