Fixed linking issues for linux.