linux compile/link fixes