Updated build scripts and libdll interfacing.