added linker flags for map file generation. fixes #344