fiddling with haddock syntax and adjusting conditional  lib dirs for linux