fix getColumns() for Buildroot

Hi,

a small patch for Buildroot which is  cross-compiling environment for embedded linux (see
http://buildroot.uclibc.org/).