Get it compiling on Lazarus/Mac.