Fix build on Windows, restore pulse_dtr function