fix bug #64490 - add __FreeBSD_kernel__ to allowed FreeBSD defs
add definition for 5.5
add code to check if we know flock definition on this system

In order to configure detect it and not fail the compile.
Not an ideal solution, suggestions are welcome on how to improve it.
fix return value
make it int main
7.0.1 release
Merge branch 'opcache' of ../php5.5