add winmm.lib to link flags