Conditionally compile the infowindow contents

The compilation of the info window is extremely useful and adding a simple bool check avoids the problem described in #27.