Fix linker flags in controllers extensions
Merge pull request #1901 from Tom-Ski/build

Fix linker flags in controllers extensions