Updated build script for newer version of EMF