Make examples compatible with war project