fixing build warnings