Fix linker flags in controllers extensions