First cut at cross-platform compilation.