Add missing Windows Shellapi include
Add missing prototype
Fix Windows daemonizer template errors