running g++ through bash for windows compatibility