Fixed some warnings reported during board compilation

From ariesve commit. (im gonna assume its the same?)