There's a potential issue here because of an undefined reference, but I can't seem to reproduce any problem caused by this. However without this fix this line of code is guarenteed to throw an exception so this fix should be safe.
TODO: Move extensions docs into here? For now see here