Improve the way assets are precompiled, closes #8