Fix declaration after statement in vms.c's Perl_my_chdir

And while we're there, set errno appropriately for the empty string
input case.
Enable sem* functions in configure.com for 8.4+.

They became available in VMS v8.4 in 2010.