Define our own MAX_INT

Define our own MAX_INT based on 32bits max int. That value will be used on
spinbuttons to simulate infinite instead of sys.maxint that could cause an
overflow on the database.

Change-Id: I4618c34ce8d1611d5d423b89261fa524a4efecad