support for jamfiles, some improvements and fixes