Own getopt is not required for openjpeg anymore
Fix to undefine __dead macro after definition in err.h