mod_v8: Detect the g++ target platform, and use this when building V8