clean up errors and warnings

LASValidator and LASread do not compile on linux or OSX without these fixes.