I found the -mwindows where it is comming from...

this is my .pro file:

QT -= core \
gui
CONFIG += debug_and_release
TRANSLATIONS += vnchooks.ts
TARGET = VNCHooks
DEFINES -= UNICODE
TEMPLATE = lib
SOURCES += ../nsserver/win32/src/VNCHooks/SharedData.cpp \
../nsserver/win32/src/VNCHooks/VNCHooks.cpp
HEADERS += ../nsserver/win32/src/VNCHooks/SharedData.h \
../nsserver/win32/src/VNCHooks/VNCHooks.h
QMAKE_CFLAGS += -mwindows
QMAKE_CXXFLAGS += -mwindows
LIBS += -lgdi32 \
-Wl,-subsystem,windows
ReleaseLLDESTDIR = ../nsserver/release \
../uni_net-classroom/release \
../uni_net-student/release \
../uni_net-student-mobile-maemo/release \
../uni_net-student-mobile-maemo/simulator/release \
../uni_net-student-mobile-maemo/maemo
DebugLLDESTDIR = ../nsserver/debug \
../uni_net-classroom/debug \
../uni_net-student/debug \
../uni_net-student-mobile-maemo/debug \
../uni_net-student-mobile-maemo/simulator/debug \
../uni_net-student-mobile-maemo/maemo

should I take out the .../win32 path?

Just to clear you out nsserver is another plugin..