fix linitian errors joydtect build
Merge branch 'beta' of https://github.com/ProfessorKaos64/RetroRig into beta

merge of JC's commit 20141015 + joydetect build fixes