minor bug fixes
enabled gcc and a minor bugfix in intermediate makefile