Fixed gcc43 conversion warnings and replaced sprintf