fix compilation
fix location of external attributes for mono