Fix for #475, using .cache folder to store generated .dll files

The .cache folder is generated in the same directory as the bin folder.