Why dont you just use libcod and set sv_cracked to 1?

Should fix all your troubles