Add patch for prima to enable dumping

To be used when looking at what prima does.