fix ambiguous conversion errors for gcc 4.8

Change-Id: Ifa1a4073a805485a38344a7170ce381e6f0bbbd9
Revert "Tracking libcore change to use longs instead of ints to store pointers in OpenSSL binding"

This reverts commit b16dd02e53d57f3d712f1da6d3ded0df1509b78d.