fix for compile and link issues in VC projects