fixed compile issues with gcc 4.7 (see issue #72)