gcc 3.1 warning fix (patch by Felix Buenemann <atmosfear at users.sourceforge.net>)