I downloaded this right after you published svn and then I got hit hard at work. Sorry to just disappear.
I fired this back up today and got it building under debian testing 64-bit.
The most notable issues were case-sensitivity in filenames and includes, '\' instead of '/' in include paths, and a handful of windows API functions that I moved to SQL or just cobbled together windows.h equivalents.
The one remaining issue appears to be related to 64 bit builds. I looked back at one of my old projects that borrowd PFS code from azone and it looks like we did things similarly. After quite a bit of debugging I started testing my old code again (as it was working in linux32) and it failed as well.
I won't be able to validate this in a 32-bit environment until later, but here's what I have so far.
http://midian.homelinux.net/lanterndiff.txt