Fix compilation under ARC and memory leak under manual retain-release