Safe integer operation library for C