remove a few extra warnings due to casting on gcc