Couple of fixes that allows to compile drivers for 32bit architecture
merge latest kozlek/master