fixing some undefined references