Fix build when used as submodule