Fixed linked list implementation for complation on OS X 10.8.2