Use configure to determine the prefixes and include directories properly.