Windows: make signal functions work