cmake fixes for wmi.cpp and supporting LIB_SUFFIX