#pragma comment

is an alternative to the adding the lib to the dependencies.