MacOS compatibility changes

- Drop BOOL typedef, just use int
- Export symbols
- HTTP_read declaration
add macos project files
Mac: Use @rpath for library location