updated libraries and build script to work with dmd 2.065