fix driver used by retroarch, enable threading and build a script to configure joypads