shuffling cmake script lines ... make static linking work again