This fixes various errors when compiling with current toolchains and/or -std=c23.
I realize the fix for plug-ins/selection-to-path is a bit quick and dirty, unsure if we rather wanted to get rid of types.h in there and use the portable types from glib.