Use -O1 for non-GNU linkers

r? @Luqmana