build fixes

This patch fixes two build problems

1) When compiling you want the local newly compiled libraries to override the installed libraries, but the order of the link causes this not to happen.

2) if tkcanvas.h is present then we also need to make the private tcl headers available