fixing some gcc issues that vsc++ didn't have