Clean up linux compiler warnings; first pass at cross platform build