Fix linker issue in debug builds