Build and test on Linux and Mac OSX.