allow building in subdirectory or outside source directory