[fix] iOS6 compatibility

Signed-off-by: Alexander Sychev <asychev@poloniumarts.com>