updated build script
moved external LGM library to /thirdparty