build: simplify enabling of compat objects