Couple of fixes that allows to compile drivers for 32bit architecture