Fix linux compile/link issues