fixed: now supports g++