Linux completion and compile fixes