Fix compile errors on Darwin

Several compile errors occur on Darwin/OS X. Those errors are due to :
* functions present in Darwin that are absent from Gnulib (`strlcpy`, `wait`)
* functions present in Gnulib that are absent from Darwin (`get_current_dir_name`)

Also, there's a typo in the certificate's filename.