compiles on Ubuntu now, but won't link