More host platform fixes

Integration tests use process.platform as host
libm by default is a linking feature
host ‘osx’ => ‘darwin’