fix Linux build (tested on Ubuntu 12.10, 32bit)