fix cuda compilation