fixing compilation problem on some versions of sdk