First thing you have to do is add a resource directory called "lib" to your module.xml.
Once you've done that, you have to file your native libs in the proper platform-specific directory. The directory name format is <osname>-<osarch> where <osname> is one of:
- linux
- macosx
- win
- os2
- solaris
- mpeix
- hpux
- aix
- os390
- freebsd
- irix
- digitalunix
- osf1
- openvms
...and <osarch> is one of:
- sparcv9
- sparc
- x86_64
- i686
- ppc64
- ppc
- arm
- parisc
- alpha
- mips
Then put your .so/.dll/etc files in the appropriate directories and you should be set.