fixed libdb.rc
fixed some errors
updated build.bat to incluse setups