Could you not simply skip the HMDS? If I recall correctly, I used to coat resist on glass without it. We would bake it at 300 deg C to thoroughly dehydtate it first. Additionally, some standard resists include their own primer.