bump gloss version to 1.8
add ghc flags for optimization and Windows build