Added CSM_LIBRARY define for Windows support.