Fixed link against debug libraries