Make Makefile.gbase compatible

Allow Makefile.gbase to be compatible for most UNIX architectures for dynamic loaders.