If 'symbol' is None then return library base address instead.