Fix build problems on Windows by explicitly exporting/importing "function".
Merge pull request #2 from forderud/master

Fix build problems on Windows by explicitly exporting/importing "function"