Add a custom dzil plugin to generate the C API files

When building C API files we also need to clean them or it confuses dzil
Update generated Makefile.PL