Fixed some Linux linking bugs