You need to use 1.0.6 or lower. You can download it from here https://www.arduino.cc/en/Main/OldSoftwareReleases#previous