fix build warnigns (oddly, gcc shows nothing, despite having -Wall...)

fixes #184