fixed iOS framework compile errors after recent changes

added std:: and avoid the use of missing <tr1/random>