I just fixed an oil leak from hell on my X5. My oil leak cam from the Camshaft position sensor O ring .
It sits right up front the engine in the VANOS you don't even have to remove anything to replace it. I bought the O ring OEM from ebay $5
Here is a picture of mine 3.0i Sensor.