fix some -pedantic compiler warnings