Re-compile when source or compile flags change, fixes #2