Syria, Iraq airstrikes are 'temporary' solution: Erdogan