Fix link error when building Debug