compiles on 64 bit and proper dynamic naming of output files and references