Make export/package working

Implement #40

Signed-off-by: Hiroshi Miura <miurahr@linux.com>