Fixed compile errors in imported libraries