fix builds with different build and src dirs