Fix #1108
Merge pull request #1124 from blink1073/master

Fix import when not built (closes gh-1108)
Fixed some test failures and added a test for windowed_histogram.
Merge commit '997172d5eca6fc96977c852f62e55665592fb69b' into fix_io_update_doc
Merge branch 'fix_io_update_doc' into windowed_histogram