Added some missing imports.
diff --git a/debugger/winedbg.spec b/debugger/winedbg.spec
index 5fe482f..514f95e 100644
--- a/debugger/winedbg.spec
+++ b/debugger/winedbg.spec
@@ -6,3 +6,4 @@
import user32.dll
import advapi32.dll
import kernel32.dll
+import ntdll.dll
diff --git a/programs/clock/clock.spec b/programs/clock/clock.spec
index 394fd04..8212eeb 100644
--- a/programs/clock/clock.spec
+++ b/programs/clock/clock.spec
@@ -1,5 +1,11 @@
name clock
mode guiexe
type win32
-init WinMain
rsrc rsrc.res
+
+import comdlg32.dll
+import shell32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/cmdlgtst/cmdlgtst.spec b/programs/cmdlgtst/cmdlgtst.spec
index eb79a65..7e948ed 100644
--- a/programs/cmdlgtst/cmdlgtst.spec
+++ b/programs/cmdlgtst/cmdlgtst.spec
@@ -1,6 +1,10 @@
name cmdlgtst
mode guiexe
type win32
-init WinMain
rsrc cmdlgr.res
+
import comdlg32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/control/control.spec b/programs/control/control.spec
index 969061a..4af8255 100644
--- a/programs/control/control.spec
+++ b/programs/control/control.spec
@@ -1,4 +1,8 @@
name control
mode guiexe
type win32
-init WinMain
+
+import shell32.dll
+import user32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/notepad/notepad.spec b/programs/notepad/notepad.spec
index c200259..a655b12 100644
--- a/programs/notepad/notepad.spec
+++ b/programs/notepad/notepad.spec
@@ -1,6 +1,11 @@
name notepad
mode guiexe
type win32
-init WinMain
rsrc rsrc.res
+
import comdlg32.dll
+import shell32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/osversioncheck/osversioncheck.spec b/programs/osversioncheck/osversioncheck.spec
index 585ef75..ecf1e5c 100644
--- a/programs/osversioncheck/osversioncheck.spec
+++ b/programs/osversioncheck/osversioncheck.spec
@@ -2,3 +2,6 @@
mode cuiexe
type win32
init wine_main
+
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/progman/progman.spec b/programs/progman/progman.spec
index a85ede3..be79408 100644
--- a/programs/progman/progman.spec
+++ b/programs/progman/progman.spec
@@ -1,6 +1,11 @@
name progman
mode guiexe
type win32
-init WinMain
rsrc rsrc.res
+
+import shell32.dll
import comdlg32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/regapi/regapi.spec b/programs/regapi/regapi.spec
index fa44830..86ef42d 100644
--- a/programs/regapi/regapi.spec
+++ b/programs/regapi/regapi.spec
@@ -1,4 +1,7 @@
name regapi
mode guiexe
type win32
-init WinMain
+
+import advapi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/regtest/regtest.spec b/programs/regtest/regtest.spec
index 6838d27..ccf39f3 100644
--- a/programs/regtest/regtest.spec
+++ b/programs/regtest/regtest.spec
@@ -1,4 +1,7 @@
name regtest
mode guiexe
type win32
-init WinMain
+
+import advapi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/uninstaller/uninstaller.spec b/programs/uninstaller/uninstaller.spec
index 7473669..0768707 100644
--- a/programs/uninstaller/uninstaller.spec
+++ b/programs/uninstaller/uninstaller.spec
@@ -1,5 +1,10 @@
name uninstaller
mode guiexe
type win32
-init WinMain
rsrc rsrc.res
+
+import user32.dll
+import gdi32.dll
+import advapi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/view/view.spec b/programs/view/view.spec
index 8ffc6ec..be0fde0 100644
--- a/programs/view/view.spec
+++ b/programs/view/view.spec
@@ -1,5 +1,10 @@
name view
mode guiexe
type win32
-init WinMain
rsrc viewrc.res
+
+import comdlg32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/wcmd/wcmd.spec b/programs/wcmd/wcmd.spec
index 60cb6bb..2287554 100644
--- a/programs/wcmd/wcmd.spec
+++ b/programs/wcmd/wcmd.spec
@@ -3,3 +3,8 @@
type win32
init wine_main
rsrc wcmdrc.res
+
+import shell32.dll
+import user32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/winemine/winemine.spec b/programs/winemine/winemine.spec
index 0f75699..902bb7d 100644
--- a/programs/winemine/winemine.spec
+++ b/programs/winemine/winemine.spec
@@ -1,5 +1,10 @@
name winemine
mode guiexe
type win32
-init WinMain
rsrc rsrc.res
+
+import user32.dll
+import gdi32.dll
+import advapi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/winhelp/winhelp.spec b/programs/winhelp/winhelp.spec
index 23b5798..689bac9 100644
--- a/programs/winhelp/winhelp.spec
+++ b/programs/winhelp/winhelp.spec
@@ -3,4 +3,10 @@
type win32
init WinMain
rsrc rsrc.res
+
import comdlg32.dll
+import shell32.dll
+import user32.dll
+import gdi32.dll
+import kernel32.dll
+import ntdll.dll
diff --git a/programs/winver/winver.spec b/programs/winver/winver.spec
index 10fe0dc..7240d31 100644
--- a/programs/winver/winver.spec
+++ b/programs/winver/winver.spec
@@ -1,4 +1,8 @@
name winver
mode guiexe
type win32
-init WinMain
+
+import shell32.dll
+import user32.dll
+import kernel32.dll
+import ntdll.dll