remove useless cast
Allow user to set certain mode bits for mkdir.
mode -> amode (as man page)