Use platform specific include directory

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Include 'string' in 'java.hh'

This fixes a build breakage on Darwin 13.0 (OS X 10.9 Mavericks).

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Use 'pkg-config' for 'libzip' include directories

'libzip' installs the platform specific header file 'zipconf.h' to
a non-standard location by default. Use 'pkg-config' to resolve the
'libzip' include directories.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Define 'MAP_ANONYMOUS' on Darwin

'MAP_ANONYMOUS' is not part of the POSIX standard, and Darwin defines
it as 'MAP_ANON'. On Darwin, define 'MAP_ANONYMOUS' to be an alias for
'MAP_ANON'.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Define 'MADV_HUGEPAGE' on Darwin

Simply define it as 'MADV_NORMAL' for now.

Note: The use of 'MADV_*' constants (as opposed to 'POSIX_MADV_*'
constants) with 'posix_madvise' is a potential cause for portability
issues later on.

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Use 'JAVA_HOME' environment variable

Signed-off-by: Jussi Virtanen <jussi.k.virtanen@gmail.com>
Fix JAVA_HOME path for Travis CI

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Disable -Werror on Travis CI

We don't build cleanly with GCC yet so turn off -Werror for now.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Fix build with GCC 4.8

Signed-off-by: Pekka Enberg <penberg@kernel.org>
Merge pull request #14 from jvirtanen/fixes/darwin

Gain Darwin support