Yes, I added DIRECTX define as a dirty hack to force my debugger to recognize conditional parts when the file was open in different solution. I forgot to remove it.
The System.IO is used by Seek() method.