Fix issue #1200: Restore ACL functionality

Uses os_* functions to restore ACL functionality, addresses #1200 
You're right. This implementation is wrong.

I will do a POSIX-only implementation with a correct check for HAVE_POSIX_ACL.