Fix linux compile/link issues

Fix linux compile/link issues