use amd2 libraryTarget

The configuration may change depending on sokra's feedback on naming in webpack#362