the ICD-3 isn't supported on the WIN-10 system
ICD3 works fine under windows 10, and always had, at least under MPLABX. Not sure about MPLAB 8 as i haven't used it in ages.
other points:
- never include the device file, but only include <xc.h>
- put configuration pragmas in a c file, before any include
- be wary of any declaration that doesn't use fixed width types (those in sdtint.h), for example using char for uint8_t could be bringing you pain as the signedness of char is implementation defined
- older versions of XC16 (pre 1.35 IIRC) had the PLIB installed alongside them, slightly newer (pre 2.00) didn't but were compatible with. I think the PLIB from C30 and XC16 were compatible/the same, you might be missing those? (should be available in the XC16 downloads page, or in the MPLAB Ecosystem Archives) - Though it was never a problem for me as i learned early on how better it was to write my own libraries
- Older compiler was C90 + extensions, XC16 >= 2.00 is C99 with all the differences it brings