I agree, I wouldn't bother with the peripheral libs for this. As I said above, you are better to configure the registers yourself, the datasheets are clear and descriptive. MPLABX will generate the config table too. Go to Window->Target Memory View-> Configuration bits. Click generate code when done and paste into your project.