Fix portable build