added debug option for linking with debug version of runtime lib