declare _NSGetExecutablePath() on darwin

Avoids -Wimplicit-function-declaration and bad cast warning
from long* to int*.