Fixed missing string() reference
Some minnor fixes to able compile application on CentOs 6.4