Fix linking errors on win32 (STATICLIB needs to be defined for anything that pulls in the miniupnp headers), also timekeeper needed winsock libary.