undefined reference errror using gcc 3.3.2