[fix][build] maybe adding the main dir will help gcc