Ensure Erlang code is compiled during package installation
Add some missing requires
Add support for non-default project node erlang cookies
Add missing mock function
Fix type for lib-dirs