fixes so that make latexpdf works