This seems wrong.  I don't think the global pios.h file should ever be including the _priv.h files.  Those are intended to be used only by board_init.  I may be missing something about how the rest of the code is structured though so not sure yet.