Fixed #28

The fix was trivially explicitly adding the function to the header, as another user suggested on the issue. Don't know if there is a better way though.