Build: scheduler: Build the test libraries as shared libraries.
This is 0baa1c9fd75a72a4e1569544e5ab6cfea71ace57 but for lib/pengine.