fix compiler warnings in board.h