Fixed undefined reference to errors error