fix errors during configure and compilation steps (see #5)

This PR applies the fixes described in #5.