Horay/bugfix/ubuntubuild

fixes build with GCC on Ubuntu 11.04 and later