Add support for MPLAB X IDE, fix syntax warnings.