Add more #if's around LDC specific code