Attempt to make directories first before installing headers and shared objects.