encoder: depend on pthread instead of SDL2