Fix up defines in Code::Blocks DLL/SO projects