Converted to ARC, created a static build option and fixed compiler warnings