updated compiler and tag options, various bug fixes