added configurable executable (mainly for windows platforms) and a test