Move error callback above compile call
Bump to v1.0.4