%flag directive

Allows additional flags to be passed to a code generator (e.g. extra
library directories for C, output of `sdl-config` etc)
Paper typo fix
Check for duplicates when adding object files/libs/flags

Otherwise, loading an ibc multiple times causes problems.