Register the access to the package database when compiling with GHC