Fixed a memory leak in cPrefabPiecePool.

The pool pieces weren't freed upon pool destruction.
for compiliers other than msvc we need to tell lua that its building as a dll