pt: downcase settings/ dirname

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
compat: specify MAP_ANON

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
fix compat on macosx

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
implement ROI for speed

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
really fix mac this time

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
appease -Wreorder

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>