Hungary wants joint action to stop 'illegal migration'