Fixed problem with the round()-function...seems that it was added only in the C99 standard