removing warnings when compiling with gcc 4.6.3