C: fix RTLD_NOLOAD error on BSD

this flag is not implemented on BSDs
fixes #351