Resolved linking errors on Ubuntu