Fix target platform environment