eliminated compiler warnings when building with gcc 4.8.2