Fixed globals in recorder and added support to autotools