some more fixes in build script
Fix a few changed interface calls

This causes at least the 'delete doesn't work' bug, but might fix a few more hidden ones