Add compiler constraint on core

This should fix #383