[media-gfx/fbida] port from tree, add linking fixes for PrintGifError