Fix linker options for release