How about fixing your build scripts and makefiles instead? Convoluted solutions for a non-existing problem.