fix issues that cause building real plugins to fail