Use new compiler options

Based on ol3 error list. Fixes #29