Remove library build flag functions from NaCl module

Fixes #22
Make some examples in Haddock comments testable by doctest
Move getDefaultToolChain functions to private modules

Fixes #21