moved setting gnu++11 flag to correct location