fix compilation and export dir