Make extpath/extname global variables type const
Extopt has_arg field made boolean.

It is already treated as boolean and bool.h is requred for library, so
we can simply use bool and remove unneeded enum.