make string to int conversion work for 32bit php