Does your Z4 have auto lights? If so, this is likely what is causing the flickering. If you manually turn the lights on, do they still flicker?
My old hid's used to flicker when I installed them and left the lights on the 'auto' setting. I ended up removing them as I couldn't stop them flickering.
You can buy hid kits specifically made for cars with auto lights.
If that's not the issue, then I'm not sure what it could be.