ios 7.1 fixes. closes #40