Workaround (hack) for nano and tensorflow incompatibilities in shared libraries. Further fixes for tensorflow GPU support